﻿using System;
using System.Collections.Generic;
using Assist;
using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;

namespace YJKTextDimension.Commands
{
	[Transaction(TransactionMode.Manual)]
	[Regeneration(RegenerationOption.Manual)]
	public class CmdRadiusDim : YJKCommandAuto
	{
		protected override Result YJKExcute(ExternalCommandData cmdData, ref string message, ElementSet elements)
		{
			IList<Element> list = ElementFiltering.FindSpecialElements(this.m_doc, typeof(Level), BuiltInCategory.OST_Levels);
			foreach (Element element in list)
			{
				Level level = element as Level;
				TaskDialog.Show("revit", level.Name.ToString());
			}
			return base.YJKExcute(cmdData, ref message, elements);
		}
	}
}
